{"ast":null,"code":"import _defineProperty from \"/Users/poppie/Desktop/development/messenger/app/frontend/node_modules/@babel/runtime/helpers/esm/defineProperty.js\";\nvar initMotionCommon = function initMotionCommon(duration) {\n  return {\n    animationDuration: duration,\n    animationFillMode: 'both'\n  };\n};\n// FIXME: origin less code seems same as initMotionCommon. Maybe we can safe remove\nvar initMotionCommonLeave = function initMotionCommonLeave(duration) {\n  return {\n    animationDuration: duration,\n    animationFillMode: 'both'\n  };\n};\nexport var initMotion = function initMotion(motionCls, inKeyframes, outKeyframes, duration) {\n  var _ref;\n  var sameLevel = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : false;\n  var sameLevelPrefix = sameLevel ? '&' : '';\n  return _ref = {}, _defineProperty(_ref, \"\\n      \".concat(sameLevelPrefix).concat(motionCls, \"-enter,\\n      \").concat(sameLevelPrefix).concat(motionCls, \"-appear\\n    \"), Object.assign(Object.assign({}, initMotionCommon(duration)), {\n    animationPlayState: 'paused'\n  })), _defineProperty(_ref, \"\".concat(sameLevelPrefix).concat(motionCls, \"-leave\"), Object.assign(Object.assign({}, initMotionCommonLeave(duration)), {\n    animationPlayState: 'paused'\n  })), _defineProperty(_ref, \"\\n      \".concat(sameLevelPrefix).concat(motionCls, \"-enter\").concat(motionCls, \"-enter-active,\\n      \").concat(sameLevelPrefix).concat(motionCls, \"-appear\").concat(motionCls, \"-appear-active\\n    \"), {\n    animationName: inKeyframes,\n    animationPlayState: 'running'\n  }), _defineProperty(_ref, \"\".concat(sameLevelPrefix).concat(motionCls, \"-leave\").concat(motionCls, \"-leave-active\"), {\n    animationName: outKeyframes,\n    animationPlayState: 'running',\n    pointerEvents: 'none'\n  }), _ref;\n};","map":{"version":3,"names":["initMotionCommon","duration","animationDuration","animationFillMode","initMotionCommonLeave","initMotion","motionCls","inKeyframes","outKeyframes","sameLevel","arguments","length","undefined","sameLevelPrefix","Object","assign","animationPlayState","animationName","pointerEvents"],"sources":["/Users/poppie/Desktop/development/messenger/app/frontend/node_modules/antd/es/style/motion/motion.js"],"sourcesContent":["const initMotionCommon = duration => ({\n  animationDuration: duration,\n  animationFillMode: 'both'\n});\n// FIXME: origin less code seems same as initMotionCommon. Maybe we can safe remove\nconst initMotionCommonLeave = duration => ({\n  animationDuration: duration,\n  animationFillMode: 'both'\n});\nexport const initMotion = function (motionCls, inKeyframes, outKeyframes, duration) {\n  let sameLevel = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : false;\n  const sameLevelPrefix = sameLevel ? '&' : '';\n  return {\n    [`\n      ${sameLevelPrefix}${motionCls}-enter,\n      ${sameLevelPrefix}${motionCls}-appear\n    `]: Object.assign(Object.assign({}, initMotionCommon(duration)), {\n      animationPlayState: 'paused'\n    }),\n    [`${sameLevelPrefix}${motionCls}-leave`]: Object.assign(Object.assign({}, initMotionCommonLeave(duration)), {\n      animationPlayState: 'paused'\n    }),\n    [`\n      ${sameLevelPrefix}${motionCls}-enter${motionCls}-enter-active,\n      ${sameLevelPrefix}${motionCls}-appear${motionCls}-appear-active\n    `]: {\n      animationName: inKeyframes,\n      animationPlayState: 'running'\n    },\n    [`${sameLevelPrefix}${motionCls}-leave${motionCls}-leave-active`]: {\n      animationName: outKeyframes,\n      animationPlayState: 'running',\n      pointerEvents: 'none'\n    }\n  };\n};"],"mappings":";AAAA,IAAMA,gBAAgB,GAAG,SAAnBA,gBAAgB,CAAGC,QAAQ;EAAA,OAAK;IACpCC,iBAAiB,EAAED,QAAQ;IAC3BE,iBAAiB,EAAE;EACrB,CAAC;AAAA,CAAC;AACF;AACA,IAAMC,qBAAqB,GAAG,SAAxBA,qBAAqB,CAAGH,QAAQ;EAAA,OAAK;IACzCC,iBAAiB,EAAED,QAAQ;IAC3BE,iBAAiB,EAAE;EACrB,CAAC;AAAA,CAAC;AACF,OAAO,IAAME,UAAU,GAAG,SAAbA,UAAU,CAAaC,SAAS,EAAEC,WAAW,EAAEC,YAAY,EAAEP,QAAQ,EAAE;EAAA;EAClF,IAAIQ,SAAS,GAAGC,SAAS,C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